$dir = $fromSharedRepository ? $wgSharedUploadDirectory :
$wgUploadDirectory;
- $ishashed = $fromSharedRepository ? $wgHashedSharedUploadDirectory :
- $wgHashedUploadDirectory;
$name = $this->name;
- $fullpath = $dir . wfGetHashPath($name) . $name;
+ $fullpath = $dir . wfGetHashPath($name, $fromSharedRepository) . $name;
return $fullpath;
}
global $wgHashedSharedUploadDirectory, $wgSharedUploadDirectory;
$ishashed = $fromSharedDirectory ? $wgHashedSharedUploadDirectory :
- $wgSharedUploadDirectory;
+ $wgHashedUploadDirectory;
if($ishashed) {
$hash = md5($dbkey);
return '/' . $hash{0} . '/' . substr( $hash, 0, 2 ) . '/';